@extends('layouts.base')      
@section('content')
<section class="Hui-article-box">
	<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页
		<span class="c-gray en">&gt;</span>
		系统管理
		<span class="c-gray en">&gt;</span>
		配置管理<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a> </nav>
	<div class="Hui-article">
	<article class="cl pd-20">
      <form action="" method="post" class="form form-horizontal" id="submit-form">
		@csrf
		
		@foreach ($data as $item)
			@if($item->type == 'text')
				<div class="row cl">
					<label class="form-label col-xs-3 col-sm-2"><span class="c-red">*</span>{{$item->item_label}}：</label>
					<div class="formControls col-xs-6 col-sm-7">
						<input type="text" class="input-text" value="{{$item->item_value}}" id="{{$item->item_key}}" name="{{$item->item_key}}">
					</div>
				</div>
			@elseif($item->type == 'radio')
				<div class="skin-minimal row cl">
					<label class="form-label col-xs-3 col-sm-2"><span class="c-red">*</span>{{$item->item_label}}：</label>
					<div class="formControls col-xs-6 col-sm-7">
						<div class="radio-box skin-minimal">
						    <input type="radio" id="radio-1" name="{{$item->item_key}}" value="1" @if ($item->item_value == 1)checked @endif >
						    <label for="radio-1">是</label>
						  </div>
						  <div class="radio-box">
						    <input type="radio" id="radio-2" name="{{$item->item_key}}" value="0" @if ($item->item_value == 0)checked @endif >
						    <label for="radio-2">否</label>
						 </div>
					</div>
				</div>
			@endif
		@endforeach	
		
		
		<div class="row cl">
			<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
				<input class="btn btn-primary radius" id="button-submit-edit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
			</div>
		</div>
	</form>
	</article>
	</div>
</section>					
@endsection
 
 
@section('script')
<script>


var SCOPE = {
    'update_url' : '/system/config/edit',
    'jump_url' : '/system/config/index',
}
  
</script>
 @endsection		